package com.atm.thirdplt.dao.mapper.his;

import com.atm.thirdplt.common.core.domain.his.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 对接His数据Dao持久接口类
 *
 * @author atm
 */
public interface HisInfMapper {

    /**
     * 从his库查询科室信息
     *
     * @return 科室集合信息
     */
    List<HisDeptDict> selDeptDic();

    /**
     * 从his库查询工作人员信息
     *
     * @return 工作人员信息集合
     */
    List<HisUsers> selHisUsers();

    List<HisOperationSchedule> selHisOpertSchedule(@Param("patId") String patId,
                                                   @Param("visitId") String visitId,
                                                   @Param("startTime") String startTime,
                                                   @Param("endTime") String endTime);

    List<HisScheduledOperationName> getScheOperName(@Param("patId") String patId,
                                                    @Param("visitId") String visitId,
                                                    @Param("scheduleId") String scheduleId);

    List<HisPatsInHospital> getPatInHos(@Param("patIdList") List<String> patIdList);

    List<HisPatMasterIndex> selPatInfByIds(@Param("patIdList") List<String> patIdList);

    List<HisPatMasterIndex> selPatInfByConHis(@Param("patId") String patId);

    List<HisPatsInHospital> selPatInHosByConHis(@Param("patId") String patId, @Param("inpNo") String inpNo);

    List<HisOperationDict> selOperDicHis();

    List<HisPatMasterIndex> selPatInfByClinicNumber(@Param("clinicNumber")String clinicNumber);
}
